package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class Question extends BaseDomain {

    //问题标题
    private String title;
    //提问者
    private User questionUser;
    //提问时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date questionTime;
    //浏览数
    private Integer visitCount = 0;
    //回答数
    private Integer answerCount = 0;
    //回答内容
    private String questionContent;
    //提问的目的地
    private String questionPlace;
    //提问上传的图片
    private String questionImgUrl;

}